package com.example.demo.domain;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
@NoArgsConstructor
@Data
public class BlogPost {
    private Long id;
    private String title;
    private String content;
    private Date creationDate;
    private Date modificationDate;
    private int upvoteCount;
    private int downvoteCount;

    public BlogPost(String title,String content ){
        this.title = title;
        this.content = content;
    }
}
